package com.credithc.customers.base.ro;

import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zhukai
 * @date 2018/11/28 10:55
 */
@Data
public class CompanyIdInfoRo implements Serializable {

    private String idCardType;

    private String idCardNo;

    private String customerName;

    private String orgNo;

    private String licenseNo;

    private String taxNo;

    private String unifiedCode;

    private String legalName;

    private Boolean elementsVerified;

    private String elementsTime;

    private String customerType;

    private String customerPhoneNo;

    private String customerCertNo;

    private String corprateCertExpiry;

    private String corprateCertExpiryend;

    private String corprateMobile;

    private String operatorName;

    private String operatorCertType;

    private String operatorCertNo;

    private String operatorCertExpiry;

    private String operatorCertExpiryend;

    private String operatorMobile;

    private String customerCertPid;

    private String corpratePic1;

    private String corpratePic2;

    public static void checkBaseParam(CompanyIdInfoRo ro) {
        CustomerUtils.checkCustomerName(ro.getCustomerName());
        CustomerUtils.checkIdCardType(ro.getIdCardType());
        CustomerUtils.checkIdCardNo(ro.getIdCardNo());
        CustomerUtils.checkLegalName(ro.getLegalName());
        CustomerUtils.checkElementsVerified(ro.getElementsVerified());
    }

}
